package serverDB;

import org.hibernate.Session;
/**
 * managing the interactions with database for the table Client
 * @author ran
 *
 */
public class ClientManager {
 private Session session = null;
 public ClientManager(Session session) {
  if(session == null)
    throw new 
      RuntimeException("Invalid session object.");
  this.session = session;
 }
 public void save(Client client){
  session.save(client);
 }
 public void update(Client client){
  session.update(client);
 }
 public void delete(Client client) {
  session.delete(client);
 }
}

